Tables [dbo].[DocumentTypeRef]
Properties
PropertyValue
Created10:31:20 AM Tuesday, March 02, 2010
Last Modified4:01:58 AM Thursday, March 15, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_DocumentTypeRef: DocumentTypeCodeDocumentTypeCodenvarchar(3)6
No
Indexes AK_DocumentTypeRef_DocumentTypeDesc: DocumentTypeDescDocumentTypeDescnvarchar(100)200
No
DocumentIconURLnvarchar(256)512
Yes
Indexes AK_DocumentTypeRef_DocumentTypeName: DocumentTypeNameDocumentTypeNamenvarchar(255)510
Yes
DocumentNewLinknvarchar(256)512
Yes
DocumentEditLinknvarchar(256)512
Yes
DocumentExecuteLinknvarchar(256)512
Yes
TaskHelperAssemblyNamenvarchar(255)510
Yes
TrackVersionsFlagbit1
No
Foreign Keys FK_DocumentTypeRef_DocumentMain_PublishWorkflow: [dbo].[DocumentMain].PublishWorkflowDocumentKeyIndexes IX_DocumentTypeRef_PublishWorkflowDocumentKey: PublishWorkflowDocumentKeyPublishWorkflowDocumentKeyuniqueidentifier16
Yes
Foreign Keys FK_DocumentTypeRef_DocumentMain_RecycleWorkflow: [dbo].[DocumentMain].RecycleWorkflowDocumentKeyIndexes IX_DocumentTypeRef_RecycleWorkflowDocumentKey: RecycleWorkflowDocumentKeyRecycleWorkflowDocumentKeyuniqueidentifier16
Yes
FolderIconURLnvarchar(256)512
Yes
TaskHelperTypeNamenvarchar(255)510
Yes
DocumentSummaryLinknvarchar(256)512
Yes
ShortcutIconURLnvarchar(256)512
Yes
Indexes AK_DocumentTypeRefKey: DocumentTypeRefKeyDocumentTypeRefKeyuniqueidentifier16
No
(newid())
IsExportablebit1
No
((1))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_DocumentTypeRef: DocumentTypeCodePK_DocumentTypeRefDocumentTypeCode
Yes
AK_DocumentTypeRef_DocumentTypeDescDocumentTypeDesc
Yes
AK_DocumentTypeRef_DocumentTypeNameDocumentTypeName
Yes
AK_DocumentTypeRefKeyDocumentTypeRefKey
Yes
IX_DocumentTypeRef_PublishWorkflowDocumentKeyPublishWorkflowDocumentKey
IX_DocumentTypeRef_RecycleWorkflowDocumentKeyRecycleWorkflowDocumentKey
Foreign Keys Foreign Keys
NameColumns
FK_DocumentTypeRef_DocumentMain_PublishWorkflowPublishWorkflowDocumentKey->[dbo].[DocumentMain].[DocumentKey]
FK_DocumentTypeRef_DocumentMain_RecycleWorkflowRecycleWorkflowDocumentKey->[dbo].[DocumentMain].[DocumentKey]
SQL Script
CREATE TABLE [dbo].[DocumentTypeRef]
(
[DocumentTypeCode] [nvarchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DocumentTypeDesc] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DocumentIconURL] [nvarchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentTypeName] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentNewLink] [nvarchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentEditLink] [nvarchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentExecuteLink] [nvarchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TaskHelperAssemblyName] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TrackVersionsFlag] [bit] NOT NULL,
[PublishWorkflowDocumentKey] [uniqueidentifier] NULL,
[RecycleWorkflowDocumentKey] [uniqueidentifier] NULL,
[FolderIconURL] [nvarchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TaskHelperTypeName] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentSummaryLink] [nvarchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ShortcutIconURL] [nvarchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentTypeRefKey] [uniqueidentifier] NOT NULL CONSTRAINT [DF_DocumentTypeRef_DocumentTypeRefKey] DEFAULT (newid()),
[IsExportable] [bit] NOT NULL CONSTRAINT [DF_DocumentTypeRef_IsExportable] DEFAULT ((1))
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[DocumentTypeRef] ADD CONSTRAINT [PK_DocumentTypeRef] PRIMARY KEY CLUSTERED ([DocumentTypeCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentTypeRef] ADD CONSTRAINT [AK_DocumentTypeRef_DocumentTypeDesc] UNIQUE NONCLUSTERED ([DocumentTypeDesc]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentTypeRef] ADD CONSTRAINT [AK_DocumentTypeRef_DocumentTypeName] UNIQUE NONCLUSTERED ([DocumentTypeName]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentTypeRef] ADD CONSTRAINT [AK_DocumentTypeRefKey] UNIQUE NONCLUSTERED ([DocumentTypeRefKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DocumentTypeRef_PublishWorkflowDocumentKey] ON [dbo].[DocumentTypeRef] ([PublishWorkflowDocumentKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DocumentTypeRef_RecycleWorkflowDocumentKey] ON [dbo].[DocumentTypeRef] ([RecycleWorkflowDocumentKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentTypeRef] ADD CONSTRAINT [FK_DocumentTypeRef_DocumentMain_PublishWorkflow] FOREIGN KEY ([PublishWorkflowDocumentKey]) REFERENCES [dbo].[DocumentMain] ([DocumentKey])
GO
ALTER TABLE [dbo].[DocumentTypeRef] ADD CONSTRAINT [FK_DocumentTypeRef_DocumentMain_RecycleWorkflow] FOREIGN KEY ([RecycleWorkflowDocumentKey]) REFERENCES [dbo].[DocumentMain] ([DocumentKey])
GO
Uses
Used By